package com.xbts.common.core.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.xbts.common.annotation.Excel;
import com.xbts.common.enums.ShoppingCarEnums;
import com.xbts.common.utils.StringUtils;

import javax.validation.constraints.NotEmpty;
import java.math.BigDecimal;

/**
 * 用户钱包日志对象 cn_wallet_log
 *
 * @author xbts
 * @date 2023-08-04
 */
@TableName("cn_wallet_log")
public class CnWalletLog extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId
    private String id;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 支付方式
     */
    private String paymentMethod;

    /**
     * 支付金额
     */
    private BigDecimal money;

    /**
     * 第三方流水
     */
    private String receivableNo;

    private String nickName;

    /**
     * 余额
     */
    private BigDecimal balance;
    /**
     * 消费金额
     */
    private BigDecimal consumptionAmount;

    private ShoppingCarEnums shoppingCarEnums;

    private String sn;

    private String autoRenew;

    /**
     * 购买产品和期限
     */
    private String term;
    /**
     * 产品类型
     */
    private String productTypeName;


    @TableField(exist = false)
    private int orderCount;



    public String getProductTypeName() {
        return productTypeName;
    }

    public void setProductTypeName(String productTypeName) {
        this.productTypeName = productTypeName;
    }

    public String getAutoRenew() {
        return autoRenew;
    }

    public void setAutoRenew(String autoRenew) {
        this.autoRenew = autoRenew;
    }

    public int getOrderCount() {
        return orderCount;
    }

    public void setOrderCount(int orderCount) {
        this.orderCount = orderCount;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getPaymentMethod() {
        return paymentMethod;
    }

    public void setPaymentMethod(String paymentMethod) {
        this.paymentMethod = paymentMethod;
    }

    public BigDecimal getMoney() {
        return money;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    public String getReceivableNo() {
        return receivableNo;
    }

    public void setReceivableNo(String receivableNo) {
        this.receivableNo = receivableNo;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public BigDecimal getBalance() {
        return balance;
    }

    public void setBalance(BigDecimal balance) {
        this.balance = balance;
    }

    public BigDecimal getConsumptionAmount() {
        return consumptionAmount;
    }

    public void setConsumptionAmount(BigDecimal consumptionAmount) {
        this.consumptionAmount = consumptionAmount;
    }

    public ShoppingCarEnums getShoppingCarEnums() {
        return shoppingCarEnums;
    }

    public void setShoppingCarEnums(ShoppingCarEnums shoppingCarEnums) {
        this.shoppingCarEnums = shoppingCarEnums;
    }

    public String getSn() {
        return sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    public String getTerm() {
        return term;
    }

    public void setTerm(String term) {
        this.term = term;
    }
}